Skip to content

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented Apr 1, 2025

When wrapping errors, add a nil check before wrapping the error.

Fixes #3912

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. 🔧 golang labels Apr 1, 2025
@kyleconroy kyleconroy merged commit 74e63c2 into main Apr 1, 2025
8 checks passed
@kyleconroy kyleconroy deleted the 3912-wrap_errors-pgx-always-returns-non-nil-error branch April 1, 2025 04:26
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files. 🔧 golang

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wrap_errors: pgx always returns non-nil error.

1 participant